package com.ruoyi.project.g6.service.impl;

import com.ruoyi.project.g6.entity.common.G6Record;
import com.ruoyi.project.g6.mapper.G6RecordMapper;
import com.ruoyi.project.g6.service.IG6ChipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class IG6ChipServiceImpl implements IG6ChipService {

    @Autowired
    private G6RecordMapper g6ChipMapper;

    @Override
    public int insertG6Record(G6Record object) {
        return g6ChipMapper.insertG6Record(object);
    }

    @Transactional(readOnly = true)
    @Override
    public List<G6Record> queryG6Record(String chipModelName, String chipFactoryName, int page, int count) {
        return g6ChipMapper.queryG6Record(chipModelName, chipFactoryName, page, count);
    }
}
